﻿using System.Xml.Serialization;

namespace GISUtil.KML
{
  /// <summary>
  /// Corresponds to how the link is refreshed when the camera is changed.
  /// </summary>
  public enum ViewRefreshMode
  {
    /// <summary>
    /// Does not change when the camera is changed.
    /// </summary>
    [XmlEnum(Name = "never")]
    Never,

    /// <summary>
    /// X seconds after the camera stops moving 
    /// </summary>
    [XmlEnum(Name = "onStop")]
    OnStop,

    /// <summary>
    /// When the users requests a refresh.
    /// </summary>
    [XmlEnum(Name = "onRequest")]
    OnRequest,

    /// <summary>
    /// When a new region becomes active.
    /// </summary>
    [XmlEnum(Name = "onRegion")]
    OnRegion
  }
}